<?php if (!defined('THINK_PATH')) exit(); if (!defined('SHUIPF_VERSION')) exit(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="favicon.ico" rel="shortcut icon" />
<link rel="canonical" href="<?php echo ($config_siteurl); ?>" />
<title><?php if( isset($SEO['title']) && !empty($SEO['title']) ): echo ($SEO['title']); endif; echo ($SEO['site_title']); ?></title>
<meta name="description" content="<?php echo ($SEO['description']); ?>" />
<meta name="keywords" content="<?php echo ($SEO['keyword']); ?>" />
<link href="<?php echo ($config_siteurl); ?>statics/default/css/article_list.css" rel="stylesheet" type="text/css" />
<link href="<?php echo ($config_siteurl); ?>statics/default/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "<?php echo ($config_siteurl); ?>",
    JS_ROOT: "statics/js/"
};
</script>
<script src="<?php echo ($config_siteurl); ?>statics/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo ($config_siteurl); ?>statics/default/js/w3cer.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo ($config_siteurl); ?>statics/js/ajaxForm.js"></script>
</head>
<body>
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<div class="top">
  <div class="logo left"> <a href="<?php echo ($config_siteurl); ?>" title="<?php echo ($Config["sitename"]); ?>-国内后起的站长资源门户站"><img src="<?php echo ($config_siteurl); ?>statics/images/hei_logo.png" alt="<?php echo ($Config["sitename"]); ?>-国内后起的站长资源门户站"/></a></div>
  <div class="top_ad right"></div>
  <div style="clear:both"></div>
</div>
<!--top end-->
<div class="nav">
  <div id="nav-menu">
    <div class="container">
      <div class="outerbox">
        <div class="innerbox clearfixmenu">
          <ul class="menu">
            <li class="stmenu">
              <h3><a href="<?php echo ($config_siteurl); ?>" class="xialaguang <?php if( !isset($catid) ): ?>navhovers<?php endif; ?>" title="<?php echo ($Config["sitename"]); ?>"><span>网站首页</span></a></h3>
            </li>
            <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "category")){ $data = $content_tag->category(array('action'=>'category','catid'=>'0','order'=>'listorder ASC','num'=>'0','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if( $vo['child'] ): ?><!--<?php echo ($vo["catname"]); ?>-->
            <li class="stmenu">
              <h3><a href="<?php echo ($vo["url"]); ?>" class="xialaguang <?php if( in_array($catid,explode(',',$vo['arrchildid'])) ): ?>navhovers<?php endif; ?>" title="<?php echo ($vo["description"]); ?>"><span><?php echo ($vo["catname"]); ?></span></a></h3>
              <ul style="display: none;" class="children clearfixmenu">
              <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "category")){ $data = $content_tag->category(array('action'=>'category','catid'=>$vo['catid'],'order'=>'listorder ASC','num'=>'0','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$r): $mod = ($i % 2 );++$i;?><li <?php if( $i%2 == 0 ): ?>class="noborder"<?php endif; ?>>
                  <h3><a href="<?php echo ($r["url"]); ?>" class="stmenu" title="<?php echo ($r["catname"]); ?>"><span><?php echo ($r["catname"]); ?></span></a></h3>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
                <li class="count noborder">
                  <div><?php echo ($vo["description"]); ?></div>
                </li>
              </ul>
            </li>
            <?php else: ?>
            <!--<?php echo ($vo["catname"]); ?>-->
            <li class="stmenu">
              <h3><a href="<?php echo ($vo["url"]); ?>" class="xialaguang <?php if( in_array($catid,explode(',',$vo['arrchildid'])) ): ?>navhovers<?php endif; ?>" style="margin-left:1px" title="<?php echo ($vo["description"]); ?>"><span><?php echo ($vo["catname"]); ?></span></a></h3>
            </li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            <li class="overlay"></li>
          </ul>
          <script type="text/javascript">
		  $('#nav-menu .menu > li').hover(function () {
		      $(this).find('.children').animate({
		          opacity: 'show',
		          height: 'show'
		      }, 300);
		      $(this).find('.xialaguang').addClass('navhover');
		  }, function () {
		      $('.children').stop(true, true).slideUp(100);
		      $('.xialaguang').removeClass('navhover');
		  }).slice(-3, -1).find('.children').addClass('sleft');
          </script></div>
      </div>
    </div>
  </div>
</div>
<!--nav end-->
<div class="search">
  <form  name="formsearch" class="form" action="<?php echo U('Search/Index/index');?>" method="post">
    <input type="text" name="q" size="24" class="search-keyword"  id="inputString" class="f-text" x-webkit-speech /><input type="submit" class="search-submit"  id="search-submit" value="搜 索" />
    <div class="suggestionsBox" id="suggestions" style="display: none;">
      <div class="suggestionList">
        <ul id="autoSuggestionsList">
        </ul>
      </div>
    </div>
  </form>
</div>
<div class="map"><span class="home_ico">当前位置：<a href="<?php echo ($config_siteurl); ?>"><?php echo ($Config["sitename"]); ?></a> &gt; <?php  $arrparentid = array_filter(explode(',', getCategory($catid,"arrparentid") . ',' . $catid)); foreach ($arrparentid as $cid) { $parsestr[] = '<a href="' . getCategory($cid,'url') . '" >' . getCategory($cid,'catname') . '</a>'; } echo implode(" &gt; ", $parsestr);?></span>
  <p style="float:right;padding-right:15px;"></p>
</div>
<div class="w972" style="margin-top:8px;">
  <div class="article_article_left left">
    <div class="article_con">
      <h1 title="<?php echo ($title); ?>"><?php echo ($title); ?></h1>
      <p class="info"> 出处:本站原创&nbsp;&nbsp;&nbsp;发布时间:<?php echo ($updatetime); ?>&nbsp;&nbsp;&nbsp;   您是第<span id="hits">0</span>位浏览者 </p>
      <div class="tool_con">
        <div class="btn_fontsize"><a onFocus="if(this.blur)this.blur()" href="javascript:put_layer(2);"><img src="<?php echo ($config_siteurl); ?>statics/default/images/btn_fontsize_up.gif" title="工具栏"/></a> </div>
        <div id="put_layer2" class="tools" style="display:block;"> 
          <script src="<?php echo ($config_siteurl); ?>statics/default/js/tools.js" language="javascript" type="text/javascript"></script> 
        </div>
        <div style="clear:both;"></div>
      </div>
      <div class="article_txt" id="a_fontsize">
        <?php echo ($content); ?>
        <?php if( $voteid ): ?><script language="javascript" src="<?php echo ($Config["siteurl"]); ?>index.php?g=Vote&m=Index&a=show&action=js&subjectid=<?php echo ($voteid); ?>&type=2"></script><?php endif; ?>
        <?php if( !empty($download) ): ?><ul class="tow-columns clearfix">
            <?php if(is_array($download)): $i = 0; $__LIST__ = $download;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="l"><a href="<?php echo ($vo["fileurl"]); ?>" target="_blank" class="btn-download" title="下载所需积分<?php echo ($vo["point"]); ?>"><?php echo ($vo["filename"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul><?php endif; ?>
        <div class="fanye" style="border: 0px solid #CCC;">
      <ul>
        <?php echo ($pages); ?>
      </ul>
      <div style="clear:both"></div>
    </div>
      </div>
      <div class="contentpage">
        <ul>
        </ul>
        <div style="clear:both"></div>
      </div>
      <!--分享到-->
      <div class="share">
        <div class="ilike"> 
          <!-- 将此标记放在您希望显示like按钮的位置 -->
          <div class="bdlikebutton"></div>
          <!-- 将此代码放在适当的位置，建议在body结束前 --> 
          <script id="bdlike_shell"></script> 
          <script>
			var bdShare_config = {
				"type":"medium",
				"color":"blue",
				"uid":"627811",
				"likeText":"喜欢,顶一个",
				"likedText":"亲.您已顶过"
			};
			document.getElementById("bdlike_shell").src="http://bdimg.share.baidu.com/static/js/like_shell.js?t=" + new Date().getHours();
		  </script> 
        </div>
        <!-- JiaThis Button BEGIN -->
        <div class="jiathis_style_32x32"> <a class="jiathis_button_qzone"></a> <a class="jiathis_button_tsina"></a> <a class="jiathis_button_tqq"></a> <a class="jiathis_button_renren"></a> <a class="jiathis_button_kaixin001"></a> <a class="jiathis_button_cqq"></a> <a class="jiathis_button_copy"></a> <a class="jiathis_button_email"></a> <a class="jiathis_button_baidu"></a> <a class="jiathis_button_douban"></a> <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a> <a class="jiathis_counter_style"></a> </div>
		<script type="text/javascript" >
        var jiathis_config={
            summary:"",
            hideMore:false
        }
        </script> 
        <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script> 
        <!-- JiaThis Button END --> 
      </div>
      <!--end-->
      <div class="related">
        <div class="xiangguan">
          <h2>相关文章推荐</h2>
          <ul>
          <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "relation")){ $data = $content_tag->relation(array('action'=>'relation','relation'=>$relation,'catid'=>$catid,'order'=>'id DESC','num'=>'10','keywords'=>$keywords,'nid'=>$id,'page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href='<?php echo ($vo["url"]); ?>' target="_blank"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </div>
        <div class="like_article_ad"> </div>
        <div style="clear:both"></div>
      </div>
      <div class="page">
        <p>上一篇：<?php  $_pre_r = \Content\Model\ContentModel::getInstance(getCategory($catid,"modelid"))->where(array("catid"=>$catid,"status"=>99,"id"=>array("LT",$id)))->order(array("id" => "DESC"))->field("id,title,url")->find(); echo $_pre_r?"<a class=\"pre_a\" href=\"".$_pre_r["url"]."\" >".$_pre_r["title"]."</a>":"已经没有了"; ?> </p>
        <p>下一篇：<?php  $_pre_n = \Content\Model\ContentModel::getInstance(getCategory($catid,"modelid"))->where(array("catid"=>$catid,"status"=>99,"id"=>array("GT",$id)))->order(array("id" => "ASC"))->field("id,title,url")->find(); echo $_pre_n?"<a class=\"pre_a\" href=\"".$_pre_n["url"]."\" >".$_pre_n["title"]."</a>":"已经没有了"; ?> </p>
      </div>
    </div>
    <!--评论部分-->
    <div class="duoshuo">
      <h2><span>此评论不代表本站观点</span>大家说</h2>
      <!--评论主体-->
      <div id="ds-reset" style="margin: 8px;"></div>
    </div>
  </div>
  <!--article_list_left end-->
  <div class="article_list_right right">
    <div class="fenlei">
      <h2><span class="h2_txt">分类栏目</span></h2>
      <ul>
      <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "category")){ $data = $content_tag->category(array('action'=>'category','catid'=>getCategory($catid,'parentid'),'order'=>'listorder ASC','num'=>'0','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href='<?php echo ($vo["url"]); ?>' <?php if( $catid == $vo['catid'] ): ?>class='thisclass'<?php endif; ?>  title="<?php echo ($vo["catname"]); ?>"><?php echo ($vo["catname"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <div style="clear:both"></div>
    </div>
    <!--分类栏目end-->
    <div class="rand_pic">
      <h2><span class="h2_txt">推荐图文</span></h2>
      <ul>
      <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "lists")){ $data = $content_tag->lists(array('action'=>'lists','catid'=>$catid,'order'=>'id DESC','num'=>'4','thumb'=>'1','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($vo["url"]); ?>" title="<?php echo ($vo["title"]); ?>"><img src='<?php if($vo['thumb']): echo ($vo["thumb"]); else: echo ($config_siteurl); ?>statics/default/images/defaultpic.gif<?php endif; ?>' border='0' width='140' height='100' alt='<?php echo ($vo["title"]); ?>'><span title="<?php echo ($vo["title"]); ?>"><?php echo (str_cut($vo["title"],50)); ?></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <div style="clear:both"></div>
    </div>
    <div class="ad250" style="width:250px;height:250px;margin-bottom:8px;border:1px solid #ccc;"> 
      <img src="http://placekitten.com/250/250" />
    </div>
    <div class="hot_tj">
      <h2><span class="h2_txt">热点推荐</span></h2>
      <ul>
      <?php $content_tag = \Think\Think::instance("\Content\TagLib\Content"); if(method_exists($content_tag, "hits")){ $data = $content_tag->hits(array('action'=>'hits','catid'=>$catid,'order'=>'weekviews DESC','num'=>'10','page'=>'0','pagefun'=>'page','return'=>'data',)); } if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($vo["url"]); ?>" title="<?php echo ($vo["title"]); ?>"><?php echo (str_cut($vo["title"],42)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <div style="clear:both"></div>
    </div>
    <!--热门推荐 end-->
  </div>
  <div style="clear:both"></div>
</div>
<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<div id="footer">
  <div class="foot_con">
    <div class="ul_con">
      <ul>
        <li class="h">关于我们</li>
        <li><a>关于我们</a></li>
        <li><a>加入我们</a></li>
        <li><a>免责声明</a></li>
        <li><a>网站地图</a></li>
      </ul>
      <ul>
        <li class="h">联系我们</li>
        <li><a>联系方式</a></li>
        <li><a>交流QQ群</a></li>
        <li><a>RSS订阅</a></li>
        <li><a>给我留言</a></li>
      </ul>
      <ul>
        <li class="h">其他帮助</li>
        <li><a>在线音乐</a></li>
        <li><a>业务合作</a></li>
        <li><a>用户投稿</a></li>
        <li><a>高级搜索</a></li>
      </ul>
    </div>
    <div class="txt_con">
      <p style="line-height:2;">本站资源全来源于网络,不承担任何版权问题,如果我们侵犯了您的权益,请来信告知,我们会在第一时间处理！<br />
        copyright &#169;2013 <?php echo ($config_siteurl); ?> <a href="http://www.miitbeian.gov.cn" ref="nofollow">闽ICP备13015355号-1</a><br/>
        <?php echo ($Config["sitename"]); ?>版权所有</p>
    </div>
    <div style="clear:both"></div>
  </div>
</div>
<script type="text/javascript">
$(function (){
	$(window).toTop({showHeight : 100});
	//点击
	$.get("<?php echo ($config_siteurl); ?>api.php?m=Hits&catid=<?php echo ($catid); ?>&id=<?php echo ($id); ?>", function (data) {
	    $("#hits").html(data.views);
	}, "json");
});
//评论
var commentsQuery = {
    'catid': '<?php echo ($catid); ?>',
    'id': '<?php echo ($id); ?>',
    'size': 10
};
(function () {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';
    ds.async = true;
    ds.src = GV.DIMAUB+'statics/js/comment/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
//评论结束
</script> 
</body>
</html>